// components/store-card/index.js
Component({
  externalClasses: ['custom-class'],
  /**
   * 组件的属性列表
   */
  properties: {
      id: {
        type: Number,
        value: 0
      },
      title: {
        type: String,
        value: ''
      },
      titlepic: {
        type: String,
        value: ''
      },
      tags:{
        type: Array,
        value: []
      },
      distance: {
        type: String,
        value: ''
      },
      zone: {
        type: String,
        value: ''
      },
  },

  /**
   * 组件的初始数据
   */
  data: {
    
  },

  /**
   * 组件的方法列表
   */
  methods: {
    clickHandle(e) {
      this.triggerEvent('click', { id: this.properties.id });
    },
  }
})